<style type="text/css" media="all">@import "member.css";</style>
<?php
	session_start();
	include("../../dbconnect.inc.php");
	if( is_numeric($_GET["id"])) {
		$id = $_GET["id"];
	}else {
		die("parameter was wrong");
	}
	$sql = "select * from users where id={$id}";
	$res = mysql_query($sql);
	$row = mysql_fetch_array($res);
	extract($row);
?>
 <table width="100%" id="content">
  <tr>
<td width="100%%" id="main"><!-- begin content -->
<form action="edit_account.php"  method="post" id="user_edit">

<div><div class="form-item">
 <label for="edit-name">username: </label>
<span><?php echo $username; ?></span>
</div>
<div class="form-item">
 <label for="edit-mail">E-mailAddress: </label>
<?php echo $mail; ?>
</div>
<div class="form-item">
<label for="edit-sex">sex: </label>
<?php if($sex==0) echo "secret"; ?>
<?php if($sex==1) echo "male"; ?>
<?php if($sex==2) echo "female"; ?>
</div>
<div class="form-item">
 <label for="edit-tel">telephone: </label>
<?php echo $tel; ?>
</div>
<div class="form-item">
 <label for="edit-web">website: </label>
<?php echo $web; ?>
</div>
<div class="form-item">
 <label for="edit-birthday">birthday: </label>
<?php echo $birthday; ?>
</div>
<div class="form-item">
 <label for="edit-inter">hobby: </label>
<pre>
<?php echo $inter; ?>
</pre>
</div>
<div class="form-item">
 <label for="edit-intro">introduceyourself: </label>
<pre><?php echo $intro; ?></pre>
</div>
<a href="justlook.php" >back</a>
<br /><br />
</div></form>
<!-- end content -->
   </td>
  </tr>
 </table>
